﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace BuddHa.Camera.Protcol.DH.Models
{
    public class RealMonitorUriModel : BaseModel
    {
        public RealMonitorUriModel() : base("/videoService/realmonitor/uri", EnumRequestMethod.Post)
        {

        }
    }

    public class RealMonitorUriRequest
    {
        //通道编码
        [JsonPropertyName("channelId")]
        public string ChannelId { get; set; }

        /// <summary>
        /// 0:主码流 1:辅流1 2:辅流2
        /// </summary>
        [JsonPropertyName("subType")]
        public int SubType { get; set; }

        /// <summary>
        /// RTSP、FLV_HTTP、HLS、RTMP
        /// </summary>
        [JsonPropertyName("scheme")]
        public string Scheme { get; set; } = "HLS";
    }

    public class RealMonitorUriResponse
    {
        [JsonPropertyName("url")]
        public string Url { get; set; }

        [JsonPropertyName("transmode")]
        public string TransMode { get; set; }
    }
}
